<?php
//Page Comments
    $commentToShow = 10;
    $commentStart =0;
    if(isset($_GET['cn']))
     $commentStart= $_GET['cn'];   
    
    $commentStartFrom = $commentStart * PERPAGE;
    $commentFile = $HOME_URL."component/comment/view.php";
    $comments = $cquery->userComment($page, $commentStart, PERPAGE);
    $commentCount  = $cquery->userCommentCount($page);
    $totalComment  = $cquery->userAllCommentCount($page);
      if(! $fxn->checkOutOfRange($commentStartFrom, $commentCount)) {
        $commentStart=0;
        $commentStartFrom=0;
    }

    $commentNav  = new PageNavigator($commentFile,$commentCount,'cn',PERPAGE,$commentStart,5,"no","&page=".$page);

?>
<div  class="user_comment">
<div id="comment" class="comment"  style="background:#333;color:#FFFFFF;line-height:25px;padding-left:10px;"> Comment </div>


          <?php include("comments_add.php"); ?>

           <?php include("comments_view.php"); ?>

 </div>
